import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './container/App'
import registerServiceWorker from './registerServiceWorker'
import { createStore } from 'redux'
import { Provider } from 'react-redux';
import reducer from './reducers/reducer';
// import { BrowserRouter, Route, Switch} from 'react-router-dom'
// import Calculation from './container/calculationContainer'
// import Counter from './container/counterContainer'

let store = createStore(reducer);

// const Root = ({ store }) => (
// 	<Provider store = {store}>
// 		<App />
// 	</Provider>
// 	);

ReactDOM.render(
	<Provider store = {store}>
		<App />
	</Provider>,
	document.getElementById('root'));
registerServiceWorker();
